package com.sq.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateToStringPath {
    public static String getDateToStringPath(Date date) {
        SimpleDateFormat yearSDF = new SimpleDateFormat("yyyy");
        SimpleDateFormat monthSDF = new SimpleDateFormat("MM");
        SimpleDateFormat daySDF = new SimpleDateFormat("dd");
        String year = yearSDF.format(date);
        String month = monthSDF.format(date);
        String day = daySDF.format(date);
        return "/"+year + "/" + month + "/" + day+"/";
    }
}
